QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    hostdetail.cpp \
    main.cpp \
    mainwindow.cpp

HEADERS += \
    hostdetail.h \
    mainwindow.h

FORMS += \
    mainwindow.ui

# 在pro文件中加上下面两句发现竟然可以使用release进行debug调试
# QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO
# QMAKE_LFLAGS_RELEASE = $$QMAKE_LFLAGS_RELEASE_WITH_DEBUGINFO


# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

include(3rdparty/3rdparty.pri)
include(Utils/Utils.pri)
include(NetworkScanner/NetworkScanner.pri)

win32: LIBS += -L$$PWD/3rdparty/npcap-sdk-1.13/Lib/x64/ -lPacket -lwpcap

INCLUDEPATH += $$PWD/3rdparty/npcap-sdk-1.13/Include
DEPENDPATH += $$PWD/3rdparty/npcap-sdk-1.13/Include

win32: LIBS += -liphlpapi -lws2_32

RESOURCES += \
    res.qrc
